package service;



import dao.impl.AddCartDao;
import dao.impl.AddCartDaoImpl;
import javabean.Food;
import javabean.FoodCategory;

import java.util.List;

public class AddCartServiceImpl implements AddCartService {
    AddCartDao addCartDao = new AddCartDaoImpl();
    @Override
    public void addFood(Food food) {
        addCartDao.addCart(food);
    }

    @Override
    public Food queryFoodById(Integer id) {
        return addCartDao.queryFoodById(id);
    }

    @Override
    public List<Food> queryFoods() {
        return addCartDao.queryFoods();
    }

    @Override
    public List<FoodCategory> queryFoodCategorys() {
        return addCartDao.queryFoodCategorys();
    }
}
